import 'package:aweb5/bean/aplus/share_all_entity.dart';

shareAllEntityFromJson(ShareAllEntity data, Map<String, dynamic> json) {
	if (json['title'] != null) {
		data.title = json['title']?.toString();
	}
	if (json['desc'] != null) {
		data.desc = json['desc']?.toString();
	}
	if (json['link'] != null) {
		data.link = json['link']?.toString();
	}
	if (json['imgUrl'] != null) {
		data.imgUrl = json['imgUrl']?.toString();
	}
	if (json['smallPath'] != null) {
		data.smallPath = json['smallPath']?.toString();
	}
	if (json['smallShareImg'] != null) {
		data.smallShareImg = json['smallShareImg']?.toString();
	}
	if (json['codeImgUrl'] != null) {
		data.codeImgUrl = json['codeImgUrl']?.toString();
	}
	if (json['joinLink'] != null) {
		data.joinLink = json['joinLink']?.toString();
	}
	if (json['customerSTitle'] != null) {
		data.customerSTitle = json['customerSTitle']?.toString();
	}
	if (json['customerSDesc'] != null) {
		data.customerSDesc = json['customerSDesc']?.toString();
	}
	if (json['customerSImg'] != null) {
		data.customerSImg = json['customerSImg']?.toString();
	}
	return data;
}

Map<String, dynamic> shareAllEntityToJson(ShareAllEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['title'] = entity.title;
	data['desc'] = entity.desc;
	data['link'] = entity.link;
	data['imgUrl'] = entity.imgUrl;
	data['smallPath'] = entity.smallPath;
	data['smallShareImg'] = entity.smallShareImg;
	data['codeImgUrl'] = entity.codeImgUrl;
	data['joinLink'] = entity.joinLink;
	data['customerSTitle'] = entity.customerSTitle;
	data['customerSDesc'] = entity.customerSDesc;
	data['customerSImg'] = entity.customerSImg;
	return data;
}